package com.choosefine.it.basedata.service;

import com.choosefine.it.basedata.dao.UnitTypeMapper;
import com.choosefine.it.basedata.model.UnitType;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * Created by yuxin on 2017/2/13/0013.
 */
@Service("unitTypeService")
public class UnitTypeService {
    @Resource
    UnitTypeMapper unitTypeMapper;

    public List<UnitType> selectAllUnitType(){
        return unitTypeMapper.selectAllUnitType();
    }

    public String selectById(Integer id){
        return unitTypeMapper.selectById(id);
    }
}
